﻿

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php if (!include_slot('title')): ?>
    TibzSymfony
  <?php endif; ?></title>
<meta name="description" content="here goes your description" />
<meta name="keywords" content="web, designing, with, standard, xhtml, css" />
<meta name="author" content="Roshan Ravi" />
<!--Designed - Roshan
website - www.ramblingsoul.com
email - c.pixels@gmail.com
-->
<?php use_javascript('jquery-1.7.2.min.js') ?>
<?php use_javascript('search.js') ?>
 
    <?php include_stylesheets(); ?>
</head>
<?php 
 $mycurrentroute = sfContext::getInstance()->getRouting()->getCurrentInternalUri();
  
  ?>
<body>
<div class="main">
<div class="tophead">
<h1 title="Pencils and Pens of a Rambling Soul" class="logo"><a href="<?php echo url_for('@homepage') ?>">TibzSymfony Blog </a><span>Blog développé sous Symfony 1.4.18</span></h1> 
</div>
<div class="header">
<div class="headertext">Ce blog est en développement perpétuel, dans le but d'explorer le framework Symfony </div>
</div>
<div class="belowheader"><div id="menu">
  <ul>
    <li><a href="<?php echo url_for('@homepage') ?>" title="blog"><span>Blog</span></a></li>
    <li><a href="<?php echo url_for('@shop') ?>" title="shop"><span>Shop</span></a></li>
    <li><a href="<?php echo url_for('@test') ?>" title="about me"><span>A propos</span></a></li>
    <li><?php if ($sf_user->isAuthenticated() == 0) { ?><a href="<?php echo url_for('sfGuardAuth/signin') ?>"><span>Connexion</span></a><?php } else { ?> <a href="<?php echo url_for('sfGuardAuth/signout') ?>"><span>Déconnexion</span></a> <?php } ?></li>
    <?php if ($sf_user->isAuthenticated() == 0) { ?><li><a href="<?php echo url_for('sfGuardRegister/index') ?>"><span>Inscription</span></a></li><?php } ?>
  </ul>
</div></div>
<div class="contents">
<div class="right">
<?php if ($sf_user->isAuthenticated() == 1) { ?>	
	<div class="rightbox">
<div class="rightboxhead">
<h2>Mon Compte</h2>
</div>
<div class="rightboxcontent">
<ul>
    <li><a href="<?php echo url_for('@homepage') ?>" class="active" title="Home"><span>Mes infos</span></a></li>
    <li><a href="<?php echo url_for('@show_myarticles') ?>" title="My articles"><span>Mes articles</span></a> / <span><a href="<?php echo url_for('@articles_new') ?>">Nouvel Article</a></span></li>
    <li><a href="<?php echo url_for('@caddy') ?>" title="My caddy"><span>Mon panier</span></a></li>
     <li><a href="<?php echo url_for('@caddy') ?>" title="my credit"><span>Mon crédit</span></a></li>
</ul>
</div>

<div class="rightboxbottom"></div>
</div>


<div class="rightbox">
<div class="rightboxhead">
<h2>Derniers Articles que j'ai lu</h2>
</div>
<div class="rightboxcontent">
<ul>
   
     
<?php foreach ($sf_user->getArticleHistory() as $article): ?>
      <li>
        <?php echo link_to($article->getTitle(), 'show_articles', $article) ?>
      </li>
    <?php endforeach ?></ul>
	</div>
<div class="rightboxbottom"></div>
</div>



<?php } ?>
<div class="rightbox">
<div class="rightboxhead">
<h2>Tags</h2>
</div>
<div class="rightboxcontent">Morbi dignissim mattis mi. Sed molestie  iaculis purus. Donec gravida scelerisque nunc. Aenean ac nulla. Proin  egestas orci non mauris. <a href="#">&raquo; Read More </a></div>
<div class="rightboxbottom"></div>
</div>
<div class="rightbox">
<div class="rightboxhead">
<?php if ($sf_params->get('module') == 'sfBlogArticles' || $sf_params->get('module') == 'sfBlogCategory' ): ?>
<h2>Rubriques </h2>
</div>
<div class="rightboxcontent">
  <ul>
   
    <?php  include_component('sfBlogArticles', 'listcateg') ?>
   
    
  </ul>
  <?php endif; ?>
  <?php if ($sf_params->get('module') == 'sfProducts' || $sf_params->get('module') == 'sfShopCategory' ): ?>
<h2>Produits </h2>
</div>
<div class="rightboxcontent">
  <ul>
   
    <?php  include_component('sfProducts', 'listecateg') ?>
   
    
  </ul>
  <?php endif; ?>
  
  
  
</div>

<div class="rightboxbottom"></div>
</div>

<div class="rightbox">
<div class="rightboxhead">
<h2>Recherches</h2>
</div>
<div class="rightboxcontent">
	<h2>Chercher un article</h2>
<form action="<?php echo url_for('@article_search') ?>" method="get">
  <input type="text" name="query" value="<?php echo $sf_request->getParameter('query') ?>" id="search_keywords" />
  <input type="submit" value="Recherche" />
   <img id="loader" src="/images/loader.gif" style="vertical-align: middle; display: none" />
  <div>
    Entrer un mot (contenu, titre..)
  </div>
</form>
	</div>
<div class="rightboxbottom"></div>
</div>






</div>
<div class="left">


    <?php if ($sf_user->hasFlash('notice')): ?>
          <div class="flash_notice">
            <?php echo $sf_user->getFlash('notice') ?>
          </div>
        <?php endif; ?>
 
        <?php if ($sf_user->hasFlash('error')): ?>
          <div class="flash_error">
            <?php echo $sf_user->getFlash('error') ?>
          </div>
        <?php endif; ?>
 
        <div class="content">
          <?php echo $sf_content ?>
        </div>
</div>

</div>
</div>

</div>

</body>
</html>
